﻿namespace LeadMaster.Controllers
{
  using System.Web.Mvc;
  using LeadMaster.Helpers;
  using LeadMaster.DAL;
  using System.Linq;
  using System;
  using System.Web.Security;
  using LeadMaster.Models;
  using LeadMaster.ViewModels;

  public class HomeController : Controller
  {
    private DunsmoreContext db = new DunsmoreContext();

    public ActionResult Index()
    {
      ModelState.Clear();
      Maintenance.inMaintenance = false;
      if (this.User.Identity.Name==string.Empty)
      {
          return RedirectToAction("Login", "Account");
      }
      return View();
    }

    public ActionResult About()
    {
        ViewBag.Message = "Your app description page.";

        return View();
    }

    public ActionResult Contact()
    {
        ViewBag.Message = "Your contact page.";

        return View();
    }

    public ActionResult DailyTrackerReport()
    {
      return Redirect("../Reports/DailyTracker.aspx");
    }

    public ActionResult ShowDailyTracker()
    {

      return View();
    }
  }
}
